<include file="public:header" />
<include file="public:left" />
<include file="public:article_left" />
<div style="float:left;width:100%">
    <form action="{:U('Column/add')}" method="post" enctype="multipart/form-data" class="registerform">
        <div class="form-group width50">
            <label for="exampleInputEmail1">栏目名称：</label><font color="red">*</font>
            <input type="text" class="form-control"  placeholder="栏目名称" name="name" datatype="*1-15"  nullmsg="栏目名称不可为空！" errormsg="请输入1~15个汉字">
        </div>
        <if condition="$rank eq 1" >
        <div class="form-group width50">
            <label for="exampleInputEmail1">Code：</label><font color="red">*(作为栏目唯一值)</font>
            <input type="text" class="form-control"  placeholder="Code" name="code" datatype="*"  nullmsg="Code不可为空！">
        </div>
        </if>
        <div class="form-group width50">
            <label for="exampleInputEmail1">是否导航处显示：</label>
            <select class="form-control width50 " name="show">
                <option value="0">不显示</option>
                <option value="1">显示</option>
            </select>
        </div>
        <!-- 栏目背景图案 -->
        <div class="form-group width50">
            <label for="exampleInputEmail1">栏目背景图案：</label>

            <include file="upload:index"  upload_value="" upload_name="title_img"/>
        </div>



        <div class="form-group">
            <label for="exampleInputEmail1">栏目内容：</label>
            <taglib name='Html' />
            <html:htmlEditor  />
        </div>



        <!--
        <div class="form-group">
            <label for="exampleInputPassword1">栏目简介：</label>
            <textarea class="form-control" rows="3" name="content"></textarea>
        </div>
        <div class="form-group">
            <label for="exampleInputPassword1">排序</label>
            <select class="form-control width20" name="sort">
                <option>1</option>
                <option>2</option>
                <option>3</option>
                <option>4</option>
                <option>5</option>
            </select>
        </div>
        -->
        <button type="submit" class="btn btn-primary">保存</button>
        <input type="hidden" name="parent_id" value="{$column_id}" >
    </form>
</div>

<include file="public:footer" />
